chrome.runtime.onMessage.addListener(function(request, sender, sendResponse) {
    if (request.action === "formatJson") {
      try {
        const formattedJson = JSON.stringify(JSON.parse(request.json), null, 2);
        sendResponse({ formattedJson });
      } catch (error) {
        sendResponse({ error: error.message });
      }
    }
  });
  